<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style>
    #row tr >th,td {
        border: 1px solid #ddd;
    }
    body {
        background-color: #f9f9f9;
    }
    .teaTitle tr >th {
        text-align: center;
    }
    body {
        overflow-y: auto;
    }
</style>
<script>
    var chart_data = {{ chart_data }};
    var chart_model = {{ chart_model }};
</script>
<div class="row" style="width: 100%">
    <div class="col-md-6">
        <div class="smart-widget">
            <div class="smart-widget-header">
                <strong>使用统计</strong>
            </div>
            <div class="smart-widget-inner">
                <div class="smart-widget-body">
                    <div>
                        <table style="height: 250px;width: 100%">
                            <tbody>
                            <tr>
                                <td valign="top"><div id="chart_1" style="width: 100%;height:100%"></div></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div style="margin-top:20px">
                        <table class="table table-hover table-striped">
                            <tr class="info teaTitle">
                                <th style="text-align: center; background-color: #BDF3DC;border: 1px solid #ddd">类别</th>
                                <th style="text-align: center; background-color: #BDF3DC;border: 1px solid #ddd">数量</th>
                            </tr>
                            <tr>
                                <td class="info">合作学校数</td>
                                <td style="text-align: center;">{{ data['totalSchoolNum'] }}</td>
                            </tr>
                            <tr>
                                <td class="info" >文件盒子数</td>
                                <td style="text-align: center;">{{ data['fileBox'] }}</td>
                            </tr>
                            <tr>
                                <td class="info" >课堂盒子数</td>
                                <td style="text-align: center;">{{ data['classBox'] }}</td>
                            </tr>
                            <tr>
                                <td class="info" >其他盒子数</td>
                                <td style="text-align: center;">{{ data['otherBox'] }}</td>
                            </tr>
                            <tr>
                                <td class="info" >文件盒子在线数</td>
                                <td style="text-align: center;">{{ data['fileOnline'] }}</td>
                            </tr>
                            <tr>
                                <td class="info" >文件盒子离线数</td>
                                <td style="text-align: center;">{{ data['fileOffline'] }}</td>
                            </tr>
                            <tr>
                                <td class="info" >课堂盒子在线数</td>
                                <td style="text-align: center;">{{ data['classOnline'] }}</td>
                            </tr>
                            <tr>
                                <td class="info" >课堂盒子离线数</td>
                                <td style="text-align: center;">{{ data['classOffline'] }}</td>
                            </tr>
                            <tr>
                                <td class="info" >其他盒子在线数</td>
                                <td style="text-align: center;">{{ data['otherOnline'] }}</td>
                            </tr>
                            <tr>
                                <td class="info" >其他盒子离线数</td>
                                <td style="text-align: center;">{{ data['otherOffline'] }}</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="smart-widget">
            <div class="smart-widget-header">
                <strong>已用型号</strong>
            </div>
            <div class="smart-widget-inner">
                <div class="smart-widget-body">
                    <div>
                        <table style="height: 250px;width: 100%">
                            <tbody>
                            <tr>
                                <td valign="top"><div id="chart_2" style="width: 100%;height:100%"></div></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div style="margin-top:20px">
                        <table class="table table-hover table-striped">
                            <tr class="info teaTitle">
                                <th style="text-align: center; background-color: #BDF3DC;border: 1px solid #ddd">已用盒子型号</th>
                                <th style="text-align: center; background-color: #BDF3DC;border: 1px solid #ddd">数量</th>
                            </tr>
                            {% for modelName, modelNum in model %}
                                <tr>
                                    <td class="info" >{{ modelName }}</td>
                                    <td style="text-align: center;">{{ modelNum }}</td>
                                </tr>
                            {% endfor %}
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
